package org.coco.mybatis;

import lombok.Data;
import org.coco.mybatis.mapping.MappedStatement;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * 全局的配置文件
 */
@Data
public class Configuration {

    private final  static Configuration configuration = new Configuration();

    private Map<String, MappedStatement> mappedStatementMap = new HashMap<>();

    private DataSource dataSource;

    public static Configuration getInstance() {
        return configuration;
    }

}
